package com.itheima.user.mapper;

import com.itheima.entity.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author :WuJunJie
 * packageName :com.itheima.user.mapper
 * fileName :UserMapper
 * creationTime :2022-12-13 8:42
 */
@Mapper
public interface UserMapper {
    User selectByPhone(@Param("phone") String phone);

    Boolean insertUser(@Param("user") User user);

    Boolean updateById(@Param("user") User user);

    User selectById(@Param("id") String id);

    Boolean updatePhone(@Param("user") User user);

    List<User> selectByIds(@Param("ids") List<String> ids);

}
